const mongoose = require('mongoose')

const userSchema = new mongoose.Schema({
  userName: String,
  password: String,
  gender: Number, //性别0,1,2保密
  introduction: String, // 个人简介
  avatar: String,
  role: Number, //管理员1,编辑2
  file: Object,
})

const userModel = mongoose.model('users', userSchema)

module.exports = userModel
